home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTExitWindows.pas' rev: 3.00
-
- #ifndef AHMTExitWindowsHPP
- #define AHMTExitWindowsHPP
- #include <AHMSystem.hpp>
- #include <Controls.hpp>
- #include <SysUtils.hpp>
- #include <Dialogs.hpp>
- #include <Forms.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtexitwindows
- {
- //-- type declarations -------------------------------------------------------
- enum TAHMExitType { xLogoff, xReboot, xShutDown, xPowerOff, xForce };
-
- class DELPHICLASS TAHMExitWindows;
- class PASCALIMPLEMENTATION TAHMExitWindows : public Ahmsystem::TAHMExecuteComponent
- {
- typedef Ahmsystem::TAHMExecuteComponent inherited;
-
- private:
- TAHMExitType FExitType;
- System::AnsiString FLastError;
- bool FConfirm;
- System::AnsiString FConfirmMessage;
- Classes::TNotifyEvent FOnExecute;
- void __fastcall SetExitType(TAHMExitType Value);
-
- public:
- __fastcall virtual TAHMExitWindows(Classes::TComponent* AOwner);
- virtual bool __fastcall Execute(void);
- __property System::AnsiString LastError = {read=FLastError};
-
- __published:
- __property About ;
- __property TAHMExitType ExitType = {read=FExitType, write=SetExitType, default=1};
- __property System::AnsiString ConfirmMessage = {read=FConfirmMessage, write=FConfirmMessage};
- __property bool Confirm = {read=FConfirm, write=FConfirm, default=1};
- __property Classes::TNotifyEvent OnExecute = {read=FOnExecute, write=FOnExecute};
- public:
- /* TComponent.Destroy */ __fastcall virtual ~TAHMExitWindows(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE bool __fastcall AHMExitWindows(int flags);
-
- } /* namespace Ahmtexitwindows */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtexitwindows;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTExitWindows
-